AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
AddCSLuaFile("baseclass.lua")
AddCSLuaFile("sh_player.lua")

include("shared.lua")
include("player.lua")
include("sh_player.lua")



hook.Add("PlayerSpawn", "CallNWClient", function( ply )
	umsg.Start("Arc", nil)
    umsg.Char( 0 )
	umsg.Char( ply:EntIndex() )
    umsg.End()
end )

hook.Add("PlayerDeath", "CallNWClient", function( ply )
	umsg.Start("Arc", nil)
    umsg.Char( 1 )
	umsg.Char( ply:EntIndex() )
    umsg.End()
end)

hook.Add("StartGame", "ResetClasses", function()
	
	for _, v in pairs( player.GetAll() ) do
		
		v:SetClass( Class.InitialClass )
	
	end

end )